[codex] Keep native gateway out of WSL recovery#771
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 17, 2026, 5:20 AM ET / 09:20 UTC. Summary Reproducibility: yes. from source inspection: current main returns true for any active local loopback record in Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep WSL recovery tied to explicit setup-managed records or setup-state evidence while preserving documented legacy WSL ownership markers where upgrades still need them. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main returns true for any active local loopback record in Is this the best way to solve the issue? Mostly yes; reusing AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d392f7d4ea0d. Label changesLabel changes:
Label justifications:
Evidence reviewedAcceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
@ArtLupo this is marked draft, how are you feeling about this PR? |
Summary
Keeps Windows-native local gateways out of the WSL/Docker recovery path.
What changed
WslKeepAlivePolicy.ShouldStartnow starts WSL keepalive only for setup-managed local gateway records.SetupExistingGatewayClassifiernow treats only setup-managed local records, or valid setup-state evidence, as app-owned WSL setup evidence.Desktop-A Native Gateway.Why
A Windows-native gateway can be local and loopback-bound without being managed by the old WSL/Docker setup. Treating every local loopback record as app-owned WSL evidence can incorrectly restart or recover the WSL/Docker path after the user has moved to the native Windows gateway.
Validation
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --filter "FullyQualifiedName~WslKeepAlivePolicyTests|FullyQualifiedName~StartupSetupStateTests": passed, 45 tests.\build.ps1: passeddotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: passed, 1075 testsdotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: exited 0git diff --check: passed